new Vue ({
    el: '#main',
    data: {
        rockmans: {},
        overview: {}
    },
    components: {
        'download': Download
    },
    methods: {
       getData () {
           var self = this;
           $.ajax({
               url : CommonUtil.getUrlParam("url"),
               type : "get",
               dataType:"jsonp",
               url: "./lib/share.json",
               contentType:'charset=UTF-8',
               success: function(data) {
               },
               error:function(e){
               }
           });
           function niurenshare(data){
               console.log("我的比赛分享初始参数：",data);
               self.rockmans = data.rockmans;
               self.overview = data.overview;
               //微信分享
               weixinShare(wx,"感谢有你，我们风雨同行","我和粉丝们的历险记","https://dl.app.gtja.com/nrng/shareimages/wodefensi.png",window.location.href);
           }
           window.niurenshare = niurenshare;
       }
    },
    mounted() {
        this.getData();
    }
})